package com.hmall.feign.client;

import com.hmall.feign.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("user-service")
@RequestMapping("/address")
public interface AddressClient {

    @GetMapping("{id}")
    Address findAddressById(@PathVariable("id") Long id);

}
